﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GtsServer.Model;
using GtsServer.DAL;
using System.Data;
using GtsServer.Common;

namespace GtsServer.Manage.Controller {
    public class InitialSettingController {
        InitialSettingDAL InitialDAL = new InitialSettingDAL();
        public List<InitialSetting> GetList() {
            DataSet ds = InitialDAL.GetList();
            return IListDataSet.DataSetToIList<InitialSetting>(ds, 0).ToList();
        }

        public int Add(InitialSetting model) {
            return InitialDAL.Add(model);
        }

        public bool Update(InitialSetting model) {
            return InitialDAL.Update(model);
        }

        public bool Delete(int id) {
            return InitialDAL.Delete(id);
        }
    }
}
